package khoihd;

import java.util.Iterator;

import jade.core.AID;
import jade.core.Agent;
import jade.core.behaviours.Behaviour;

public class NewAgent extends Agent {
	protected void setup() {
		System.out.println("Hello");
		System.out.println("Local name is " + getAID().getLocalName());
		System.out.println("Global name is " + getAID().getName());
		System.out.println("My address are: ");
		Iterator it = getAID().getAllAddresses();
		while (it.hasNext()) {
			System.out.println("- " + it.next());
		}
		
		class FirstBehaviour extends Behaviour {

			public void action() {
				// TODO Auto-generated method stub
				
			}

			public boolean done() {
				// TODO Auto-generated method stub
				return false;
			}
			
		}
	}
}